import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';

@Entity()
export class User {
  // 主键
  @PrimaryGeneratedColumn()
  id: number;

  // 用户名
  @Column({ type: 'varchar', length: 20 })
  username: string;

  // 密码
  @Column({ type: 'varchar', length: 20 })
  password: string;
}
